package model;

public class TemperatureConvertor {
	private double celsius;
	private double fahrenheit;
	private boolean initial = true;
	
	public String reset(){
		initial = true;
		fahrenheit = 0;
		celsius = 0;
		return "reset";
	}
	public String celsiusToFahrenheit(){
		initial = false;
		fahrenheit = (celsius*9/5)+32;
		return "calculated";
	}
	public double getCelsius() {
		return celsius;
	}
	public void setCelsius(double celsius) {
		this.celsius = celsius;
	}
	public double getFahrenheit() {
		return fahrenheit;
	}
	public void setFahrenheit(double fahrenheit) {
		this.fahrenheit = fahrenheit;
	}
	public boolean isInitial() {
		return initial;
	}
	public void setInitial(boolean initial) {
		this.initial = initial;
	}
	public boolean getInitial(){
		return initial;
	}
	
}
